#include "Floor3Control.h"

DispTime dt3;
EleValve ev3;
ControlState cs3;


void floor3_control(void) {

    if (cs3.state == Start) {
        ele_valve_set_flag(&ev3, ELEVALVE_START);
    } else {
        ele_valve_set_flag(&ev3, ELEVALVE_STOP);
    }
    accum_set_flag(&dt3, cs3.state);
    accum_time(&dt3);

    if (ev3.valve_flag == ELEVALVE_START) {
        VALVE3_ON;
    } else {
        VALVE3_OFF;
    }
}
